<style>
	.block-mb15{
		display: inline-block;margin-bottom: 15px;
	}
</style>
<div class="container-fluid" style="padding: 20px 10px 0px 10px">
	<div class="row-fluid">
		<div class="well">
		    <ul class="nav nav-tabs">
		      <li class="active"><b>录入管理</b></li>
		    </ul>
		    <div id="myTabContent" class="tab-content">
				<div class="tab-pane active in" id="home">
					<form id="formid" action="/index/addRepair" method="post">
						<span class="block-mb15" style="margin-left: 13px;">卡券编号：<input type="text" readonly value="<?=$getData['card_number']?>" placeholder="卡券编号" style="width:200px;margin-left: 5px;" name="card_number" class="card_number">
						</span>
						<span class="block-mb15" style="margin-left: 29px;">销券人员：<input type="text" readonly value="<?=$getData['input_name']?>" placeholder="销券人员" style="width:200px;margin-left: 5px;" name="input_name" class="input_name">
						</span><br/>
						<span class="block-mb15" style="margin-left: 13px;">销售类型：<select name="sales_type">
							<option value="0">其他</option>
							<option value="1" <?=$getData['sales_type']==1?'selected':''?>>一次性10张</option>
							<option value="2" <?=$getData['sales_type']==2?'selected':''?>>一次性50张</option>
							<option value="3" <?=$getData['sales_type']==3?'selected':''?>>一次性100张</option>
						</select>
							</span>
						<span class="block-mb15" style="margin-left: 29px;">修补套餐：<input type="text" readonly value="<?=$getData['use_project']?>" placeholder="" style="width:200px;margin-left: 5px;" name="use_project" class="use_project">
						</span><br/>
						<!--<span class="block-mb15" style="margin-left: -2px;">修补人手机：<input type="text" value="<?=$getData['user_mobile']?>" placeholder="顾客手机" style="width:200px;margin-left: 5px;" name="user_mobile" class="user_mobile">-->
						<!--</span>-->
						<!--<span class="block-mb15" style="margin-left: 16px;">修补人姓名：<input type="text" value="<?=$getData['user_name']?>" placeholder="顾客" style="width:200px;margin-left: 5px;" name="user_name" class="user_name">-->
						<!--</span><br/>-->
						<span class="block-mb15" style="margin-left: 42px;">店家：<input type="text" value="<?=$getData['shoper']?>" placeholder="店家" style="width:200px;margin-left: 5px;" name="shoper" class="shoper">
						</span>
						<span style="margin-left:42px;">服务商：<input type="text"  value="<?=$getData['servicer']?>" placeholder="服务商" style="width:200px;margin-left: 5px;" name="servicer" class="servicer">
						</span><br/>
						<span class="block-mb15" style="margin-left: 42px;">课区：<input type="text" value="<?=$getData['class_area']?>" placeholder="课区" style="width:200px;margin-left: 5px;" name="class_area" class="class_area">
						</span>
						<span class="block-mb15" style="margin-left: 57px;">课长：<input type="text" value="<?=$getData['director']?>" placeholder="课长" style="width:200px;margin-left: 5px;" name="director" class="director">
						</span><br/>
						<span class="block-mb15" style="margin-left:42px;">医生：<input type="text" value="<?=$getData['doctor']?>" placeholder="医生" style="width:200px;margin-left: 7px;" name="doctor" class="doctor">
						</span>
						<span class="block-mb15" style="margin-left:42px;">咨询师：<input type="text" value="<?=$getData['counselor']?>" placeholder="咨询师" style="width:200px;margin-left: 5px;" name="counselor" class="counselor">
						</span><br/>
						<span class="block-mb15">直接咨询师：<input type="text" value="<?=$getData['direct_counselor']?>" placeholder="直接咨询师" style="width:200px;margin-left: 7px;" name="direct_counselor" class="direct_counselor">
						</span>
						<span class="block-mb15" style="margin-left: 14px;">间接咨询师：<input type="text" value="<?=$getData['indirect_counselor']?>" placeholder="间接咨询师" style="width:200px;margin-left: 5px;" name="indirect_counselor" class="indirect_counselor">
						</span><br/>
						<span class="block-mb15" style="margin-left: 28px;">设计师：<input type="text" value="<?=$getData['designer']?>" placeholder="设计师" style="width:200px;margin-left: 7px;" name="designer" class="designer">
						</span>
						<span class="block-mb15" style="margin-left: 14px;">高级设计师：<input type="text" value="<?=$getData['senior_designer']?>" placeholder="高级设计师" style="width:200px;margin-left: 5px;" name="senior_designer" class="senior_designer">
						</span><br/>
						<span class="block-mb15" style="margin-left: 13px;">仪器护士：<input type="text" value="<?=$getData['instrument_nurse']?>" placeholder="仪器护士" style="width:200px;margin-left: 7px;" name="instrument_nurse" class="instrument_nurse">
						</span>
						<span class="block-mb15" style="margin-left: 29px;">配台护士：<input type="text" value="<?=$getData['matching_nurse']?>" placeholder="配台护士" style="width:200px;margin-left: 5px;" name="matching_nurse" class="matching_nurse">
						</span><br/>
						<span class="block-mb15" style="margin-left: 13px;">修补类型：<input type="text" readonly value="<?=$getData['xiubu_type']=='0'?'第一次销券':($getData['xiubu_type']=='1'?'本人修补':'他人修补')?>" placeholder="" style="width:200px;margin-left: 7px;" name="xiubu_type" class="xiubu_type">
						</span>

						<span class="block-mb15" style="margin-left: 29px;">修补金额：<input type="text"  value="<?=$getData['xiubu_money']?>" placeholder="修补金额" style="width:200px;margin-left: 5px;" name="xiubu_money" class="xiubu_money">
						</span><br/>

						<input type="hidden" value="<?=$getData['id']?>" name="id">
						<input type="hidden" value="1" name="dosubmit" />
					</form>
				</div>
				<div class="btn-toolbar">
				    <button class="btn btn-primary" id="btn-save" style="margin:18px 0 0 70px"><i class="icon-save"></i> 保存</button>
				  <div class="btn-group">
				  </div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('#btn-save').click(function(){
		b = $('input[name="xiubu_money"]').val();
		if(checkNum(b)){
			$('#formid').submit();
		}else{
			showmsg('修补金额错误，请重新输入');
		}
	});


    function checkNum(num)
    {
        var reg = /^[0-9]+(.[0-9]{0,2})?$/;
        if(reg.test(num)) {
            return true;
        }
        return false ;
    }



})
</script>